<?

class Model_Mp3 extends Models_Base {
	
	function get() {
		
		$fileList = array();
		
		if ($handle = opendir(site_path.'/static/userfiles/mp3/')) {
		    
		    while (false !== ($file = readdir($handle))) {
			
				if (preg_match('/.mp3$/', $file) ) {
					$fileList[] = $file;
				}
			}
		    
		    closedir($handle);
		}
		
		sort($fileList);
		
		return $fileList;
		
	}
}